<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
  table,td,th{
      /*边框 线性 线宽*/

      border:2px solid red;
      border-collapse:collapse;
  }
  table{
      width: 100%;
  }
  tr{
      height: 50px;


  }
  th{
      height: 50px;
      background-image: url("屏幕截图(3).png");
  }
  td{
      text-align: center;
  }
    </style>
</head>
<body>
<table>
    <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>年龄</th>
    </tr>
    <tr>
        <td>1</td>
        <td>xxx</td>
        <td>21</td>
    </tr>
    <tr>
        <td>1</td>
        <td>xxx</td>
        <td>21</td>
    </tr>
    <tr>
        <td>1</td>
        <td>xxx</td>
        <td>21</td>
    </tr>
</table>
</body>
</html>